<% type = list_item.class.name.downcase %>
<% unless type == 'photo' %>
   <li class="<%= cycle('odd','even') %>"><%= link_to(list_item, {:controller => "admin/#{type.pluralize}", :action => 'show', :id => list_item}, :class => type) %></li>
<% else %>
   <li class="<%= cycle('odd','even') %>"><%= link_to(list_item, admin_album_photo_path(list_item.album, list_item), :class => type) %></li>
<% end %>
